﻿namespace EMall.Query
{
    public interface ITree { }
    public interface ITree<TTree, TKey> : ITree where TTree : class, ITree<TTree, TKey>
    {
        TKey Id { get; set; }
        TKey ParentId { get; set; }
        IEnumerable<TTree> Children { get; set; }
    }
}